export function useLocation() {
  const getDomain = () => {
    const url = new URL(location.href)
    // const currentDomain = url.hostname;
    return url.href
    // console.log(url)
    //     console.log(`${url.protocol}//${currentDomain}`);
    //     return `${url.protocol}//${currentDomain}`;
  }

  return { getDomain }
}
